import request from '@/api/axios'
// 列表
export function getWorkList(query) {
    return request({
        url: 'api-v2/work/list',
        method: 'post',
        data: query
    })
}
// 查询单个作品
export function detailWork(query) {
    return request({
        url: 'api-v2/work/workInfo',
        method: 'post',
        data: query
    })
}

// 添加作品
export function addWork(query) {
  return request({
      url: 'api-v2/work/add',
      method: 'post',
      data: query
  })
}

// 作品上链编辑
export function addApply(query) {
    return request({
        url: 'api-v2/work/apply',
        method: 'post',
        data: query
    })
}
// 作品信息
export function workInfo(query) {
    return request({
        url: 'api-v2/work/worklnfo',
        method: 'post',
        data: query
    })
}


// 查询单个认证信息
export function detailAuth(query) {
  return request({
      url: 'api-v2/work/authInfo',
      method: 'post',
      data: query
  })
}

// 版权认证中提交认证
export function payAndAuth(query) {
    return request({
        url: 'api-v2/work/payAndAuth',
        method: 'post',
        data: query
    })
}